<div id="view_black">
	<div id="new_page">
		<div id ="new_page_border">
			<div id="new_page_header">
		   		<h1>Please Enter New Content</h1>
		 	</div>	
			<div id="new_page_form">	
				<p><%= error_messages_for :page %></p>	
				<% form_for(:page, :url => pages_path(), :html => { :method => :post }) do |f| %>
			 	<p>
					<label for="name">Page Section</label>
					<br/>
				   <%= f.collection_select :section_id, Section.main, :id, :name %>
				</p>

				<p>
					<label for="name">Page Title</label>
					<br/>
				     <%= f.text_field :name, :class => :input_line %>
				</p>

				<p>
					<label for="name">Page Headline</label>
					<br/>
				    <%= f.text_field :headline, :class => :input_line %>
				</p>
			    <p>
			    	<label for="description">Body</label>
					<br/>
				    <%= f.text_area :body %>
			    </p>
			    <p>
					<div id="other_attributes">
						<h2>Assign an Editor	<%= f.collection_select :user_id, User.editors, :id, :full_name %></h2>
						<div id="clear"></div>
					</div>
				</p>
				<% unless Datasheet.find(:all).empty? %>
					<p>
						<label for="datasheets">Available Datasheets (check to attach)</label>
						<% Datasheet.find(:all).each do |datasheet| %>
							<div class="datasheet">
								<%= check_box_tag "page[datasheet_ids][]", datasheet.id, @page.datasheets.include?(datasheet) %>
								<%= link_to datasheet.name, datasheet.public_filename %>
							</div>
						<% end %>
					</p>
				<% end %>

				<ul class="right">
					<li class="horizontal">
						<%= link_to	"cancel", dashboards_path %>
					</li>
					<li class="horizontal">|</li>
			        <li class="horizontal">	<%= submit_tag  "save", 
			                          :class => "btn", 
			                          :onmouseover => "this.className='btn btnhov'", 
			                          :onmouseout => "this.className='btn'" 
			          %></li>
			    </ul>
				<br/>
			<% end %>
			</div>
		</div>
	</div>
</div>